<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<!-- liquid/views/layout/main.php -->
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta name="language" content="en" />
    <!-- {{{ CSS -->
    <!-- blueprint CSS framework -->
    <link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->theme->baseUrl; ?>/css/src/reset.css" media="screen, projection" />
    <link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->theme->baseUrl; ?>/css/plugins/liquid/liquid.css" media="screen, projection" />
    <link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->theme->baseUrl; ?>/css/src/typography.css" media="screen, projection" />
    <!-- <link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->theme->baseUrl; ?>/css/plugins/fancy-type/screen.css" media="screen, projection" /> -->
    <!--[if lt IE 8]>
    <link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->theme->baseUrl; ?>/css/ie.css" media="screen, projection" />
    <![endif]-->
    <link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->theme->baseUrl; ?>/css/form.css" media="screen, projection" />
    <link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->theme->baseUrl; ?>/css/additional.css" media="screen, projection" />
    <link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->theme->baseUrl; ?>/css/src/print.css" media="print" />
    <!-- }}} -->
    <title><?php echo CHtml::encode($this->pageTitle); ?></title>
<script type="text/javascript">
<!--
function fixHeaders(id,data)
{
    $(".items").fixedHeader({height: 300});
}
// -->
</script>
</head>
<body>

<a name="top"></a>
<div class="container" id="page">
    <!-- {{{ Header -->
    <div class="block" id="header">
        <div id="header-left" class="column span-12">
            <h1 title="<?php echo Yii::t('site','Go to Home page'); ?>" style="cursor:pointer" onclick="self.location.href='<?php echo Yii::app()->request->baseUrl ?>';"><?php echo CHtml::encode(Yii::app()->name); ?></h1>
        </div>
        <div id="header-right" class="column span-12 last">
            <?php echo Yii::app()->dateFormatter->formatDateTime(mktime(),'medium',null); ?>
        </div>
    </div>
    <!-- }}} header -->
    <!-- {{{ Main Menu -->
    <div class="block" id="mainmenu">
        <div class="column span-20">
            <?php $this->widget('zii.widgets.CMenu',array(
                'items'=>array(
                    array('label'=>Yii::t('site','Home'), 'url'=>array('/site/index')),
                    array('label'=>Yii::t('site','Projects'), 'url'=>array('/project/admin')),
                    //array('label'=>Yii::t('site','Admin'), 'url'=>array('/admin'), 'visible'=>Yii::app()->user->checkAccess('admin')),
                    array('label'=>Yii::t('site','Login'), 'url'=>array('/site/login'), 'visible'=>Yii::app()->user->isGuest),
                    array('label'=>Yii::t('site','Logout'), 'url'=>array('/site/logout'), 'visible'=>!Yii::app()->user->isGuest),
                ),
            )); ?>
        </div>
        <div class="column span-4 last" style="text-align:right">
            <ul>
                <?php foreach($this->getSupportedLocalesLinks() as $link) : ?>
                <li><?php echo $link; ?></li>
                <?php endforeach; ?>
                <li><a href="#"><?php echo CHtml::encode(sprintf('V%s',Yii::app()->params['version'])); ?></a></li>
            </ul>
        </div><!-- mainmenu -->
    </div><!-- }}} -->
    <!-- {{{ Breadcrumbs -->
    <div class="block" id="breadcrumbs">
        <div class="column span-24">

            <?php $this->widget('zii.widgets.CBreadcrumbs', array(
                'links'=>$this->breadcrumbs,
                'htmlOptions' => array('class' => 'breadcrumbs dontprint')
            )); ?><!-- breadcrumbs -->
            <div class="breadcrumbs dontprint">
                <?php echo CHtml::link(Yii::t('site','Toggle Sidebar'),'#',array('class'=>'togglesidebar-button')); ?>
            </div>

        </div>
    </div>
    <!-- }}} -->
    <?php echo $content; ?>
    <?php if(Yii::app()->user->checkAccess('admin')) echo par($_SESSION,'$_SESSION'); ?>
    <!-- {{{ Footer -->
    <div id="footer">
        <div class="column span-8">
            <?php echo CHtml::link(Yii::t('site','About'),array('site/page','view'=>'about')); ?> | 
            <?php echo CHtml::link(Yii::t('site','Contact'),array('site/contact')); ?> | 
            <?php echo CHtml::link(Yii::t('site','AGB'),array('site/page','view'=>'agb')); ?> 
        </div>
        <div class="column span-8">
        Copyright &copy; <?php echo date('Y'); ?> by <a href="http://www.diggin-data.de" target="_blank">Diggin' Data</a><br/>
        All Rights Reserved.<br/>
        <?php echo Yii::powered(); ?>
        </div>
        <div class="column span-8 last" style="text-align:right">
            <?php echo CHtml::encode(sprintf('%s V%s',Yii::app()->name, Yii::app()->params['version'])); ?> |
            <?php echo CHtml::encode(sprintf('Rev.%s',Yii::app()->params['revision'])); ?><br/>
            <?php echo CHtml::mailto(Yii::t('site','Contact Webmaster'),Yii::app()->params['adminEmail'].'?Subject='.urlencode(sprintf('[%s V%s] %s',Yii::app()->name, Yii::app()->params['version'],Yii::t('site','Your Subject?'))).'&Body='.urlencode(Yii::t('site','Your Enquiry ?'))); ?>
        </div>
    </div>
    <!-- }}} -->
</div><!-- page -->
</body>
</html>
